package serviceset3

class DealController {
    static allowedMethods = [save: "POST"]
    static responseFormats = ['json', 'xml']

    def restTemplate

    def save(String format) {
        def result = [content: "succeed"]
        respond result, formats: [format ?: "json"]
    }
}
